package impl

import (
	"gitee.com/liuxiaowei123/vblog-3/app/blog"
	"gitee.com/liuxiaowei123/vblog-3/conf"
	"gitee.com/liuxiaowei123/vblog-3/ioc"
)

// 此文件用来实现BlogServiceImpl对象托管到ioc

func init() {
	ioc.Controller().Registry(&BlogServiceImpl{})
}

func (b *BlogServiceImpl) Init() {
	b.db = conf.C.Mysql.Getconn().Debug()
}

func (b *BlogServiceImpl) Name() string {
	return blog.Appname
}
